package com.dong.exp_ioc.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @className: Student
 * @description: TODO 类描述
 * @author: Dong
 * @date: 2022/10/11
 **/


@Component
@ToString
public class Student2 {
    @Value("111")
    private Integer id;
    @Value("dong")
    private String name;
    public void add(){
        System.out.println("add....");
    }

}

